<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>分享计划后台管理系统</title>

    <link rel="icon" <%--type="image/png"--%> href="${pageContext.request.contextPath}/image/favicon.ico">

    <jsp:include page="${pageContext.request.contextPath}/WEB-INF/views/screen/admin/resource.jsp"/>
</head>

<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <%--顶部--%>
    <div class="layui-header">
        <div class="layui-logo">分享计划</div>

        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <i class="layui-icon">&#xe612;</i>${user.nickName}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="javascript:;" onclick="refreshSystem()">刷新系统缓存</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="/adminLogout">退出</a></li>
        </ul>
    </div>

    <%--左部导航栏--%>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="test">
                <c:forEach var="menu" items="${menuList }">
                    <%--<shiro:hasPermission name="menu:${menu.text}_${menu.dataId}">--%>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;"><i class="layui-icon">${menu.menuIcon }</i>${menu.text }</a>
                        <c:forEach var="menuChildren" items="${menu.children }">
                            <%--<shiro:hasPermission name="menu:${menuChildren.text}_${menuChildren.dataId}">--%>
                                <dl class="layui-nav-child">
                                    <dd><a href="javascript:void(0)" onclick="addTab('${menuChildren.url }','${menuChildren.text }')"><i class="layui-icon">${menuChildren.menuIcon }</i>${menuChildren.text }</a></dd>
                                </dl>
                            <%--</shiro:hasPermission>--%>
                        </c:forEach>
                    </li>
                    <%--</shiro:hasPermission>--%>
                </c:forEach>
            </ul>
        </div>
    </div>

    <%--主页--%>
    <div class="layui-body" style="border-top: 5px solid #1AA094;border-left: 3px solid #1AA094;">
        <div class="layui-tab layui-tab-brief " lay-allowClose="true" lay-filter="tabs" style="margin: 0">
            <ul class="layui-tab-title"></ul>
            <div class="layui-tab-content" style="padding: 5px"></div>
        </div>
    </div>

    <!-- 底部固定区域 -->
    <div class="layui-footer" style="text-align: center">
        <a href="http://www.miitbeian.gov.cn/" target="_blank">浙ICP备17028692号</a>
        <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=33010802008332"
           style="padding-left: 20px"><img src="/image/beian.png"/>浙公网安备 33010802008332号</a>
    </div>
</div>
</body>
<script src="${pageContext.request.contextPath}/js/ux/main.js"></script>
</html>


